package org.dydl.model.system;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * @author User1
 *
 */

@Entity
@Table(name="sys_commodity")
public class SysCommodity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 9199585324346398393L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer id ;
	
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid")
	private String uuid ;
	
	//商品sku码
	private Integer sku ;
	//料号
	private String pn;
	//品名
	private String name;
	//规格型号
	private String model ;
	//默认计量单位暂时写死 011:件
	private Integer unit ;
	//单价
	private Double price;
	//数量
	private Integer quantity ;
	//创建人
	private String createBy ;
	//创建日期
	private Date createDate ;
	//最后修改人
	private String lastModifier;
	//最后修改日期
	private Date lastModifiedDate;
	
	public SysCommodity() {
		super();
		// TODO Auto-generated constructor stub
	}
	public SysCommodity(Integer id, String uuid, Integer sku, String pn, String name, String model, Integer unit,
			Double price, Integer quantity, String createBy, Date createDate, String lastModifier,
			Date lastModifiedDate) {
		super();
		this.id = id;
		this.uuid = uuid;
		this.sku = sku;
		this.pn = pn;
		this.name = name;
		this.model = model;
		this.unit = unit;
		this.price = price;
		this.quantity = quantity;
		this.createBy = createBy;
		this.createDate = createDate;
		this.lastModifier = lastModifier;
		this.lastModifiedDate = lastModifiedDate;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUuid() {
		return uuid;
	}
	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
	public Integer getSku() {
		return sku;
	}
	public void setSku(Integer sku) {
		this.sku = sku;
	}
	public String getPn() {
		return pn;
	}
	public void setPn(String pn) {
		this.pn = pn;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getModel() {
		return model;
	}
	public void setModel(String model) {
		this.model = model;
	}
	public Integer getUnit() {
		return unit;
	}
	public void setUnit(Integer unit) {
		this.unit = unit;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public Integer getQuantity() {
		return quantity;
	}
	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}
	public String getCreateBy() {
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public String getLastModifier() {
		return lastModifier;
	}
	public void setLastModifier(String lastModifier) {
		this.lastModifier = lastModifier;
	}
	public Date getLastModifiedDate() {
		return lastModifiedDate;
	}
	public void setLastModifiedDate(Date lastModifiedDate) {
		this.lastModifiedDate = lastModifiedDate;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
	
	
}
